<template>
  <div>
    登录页面
    <button @click="login">登录</button>
  </div>
</template>

<script setup>

import {useRouter} from "vue-router";

let router = useRouter()
function login(){
  localStorage.setItem('token','123')
  router.push('/')
}
</script>

<style scoped>

</style>
